<?php $this->load->view('tourism/layout/header') ?>
<div class="am-search details">
    <ul class="am-cf">
        <li class="r-black">
            <a href="<?php echo site_url('tourism/refund/refundList') ?>">
                <i class="iconfont icon-zuojiantou"></i>
            </a>
        </li>
        <li class="header-input">
            <p>退款详情</p>
        </li>
        <li class="header-home">
        	<?php $this->load->view('tourism/layout/nav'); ?>
	    </li>
    </ul>
</div>
<div class="circuittest-first refund">
	<div class="refund-details">
		<ul>
			<li class="details am-cf">
				<img class="lazy" src="/skins/tourism/images/load.jpg" data-original="<?php echo $this->config->show_image_url($refund->goods_image, '300-300');?>">
				<div class="pro-text">
					<p><?php echo $refund->goods_name; ?></p>
					<span>￥<?php echo bcsub(bcmul($refund->pay_amount, $refund->number, 2), $refund->counter_fee, 2); ?></span>
				</div>
			</li>
			<li class="addx ccte am-cf">
                <span>数量：</span>
                <div class="add-all"><?php echo $refund->number;?></div>
            </li>
            <li class="addx am-cf">
                <span>退款金额：</span>
                <div class="add-all"><?php echo bcmul($refund->pay_amount, $refund->number, 2);?></div>
            </li>
            <?php if($refund->counter_fee > 0): ?>
            <li class="addx am-cf">
                <span>手续费：</span>
                <div class="add-all"><?php echo $refund->counter_fee;?></div>
            </li>
            <?php endif ?>
		</ul>
	</div>
	<div class="basic-info">
		<p class="basic">基本信息</p>
		<div class="information">
			<ul>
				<li class="add am-cf">
	                <span>联系人：</span>
	                <div class="add-all"><?php echo $refund->user_name;?></div>
	            </li>
	            <li class="add am-cf">
	                <span>联系电话：</span>
	                <div class="add-all"><?php echo $refund->cellphone;?></div>
	            </li>
	            <li class="add am-cf">
	                <span>退货原因：</span>
	                <div class="add-all"><?php echo $refund->refund_content;?></div>
	            </li>
	            <li class="add am-cf">
	                <span>退货状态：</span>
	                <div class="add-all">
                        <?php if($refund->status == 1 && $refund->flag == 1): ?>
                            退款审核中
                        <?php elseif($refund->status == 2 && $refund->flag == 2): ?>
                            退款成功
                        <?php elseif($refund->status == 3 && $refund->flag == 1): ?>
                            拒绝退款
                        <?php else:?>
                            其它
                        <?php endif ?>
                    </div>
	            </li>
                <?php if($refund->status == 3 && $refund->flag == 1 && !empty($refund->reject_content)): ?>
	            <li class="add am-cf">
	                <span>拒绝原因：</span>
	                <div class="add-all"><?php echo $refund->reject_content;?></div>
	            </li>
                <?php endif ?>
	            <li class="add am-cf">
	                <span>图片：</span>
	                <div class="add-all">
	                	<ul class="am-cf">
	                		<li><img class="lazy" src="/skins/tourism/images/load.jpg" data-original="<?php echo $this->config->show_image_url($refund->images) ?>"></li>
	                	</ul>
	                </div>
	            </li>
	            <li class="add am-cf">
	                <span>申请时间：</span>
	                <div class="add-all"><?php echo $refund->created_at;?></div>
	            </li>
                <?php if($refund->verify_time > $refund->created_at): ?>
	            <li class="add am-cf">
	                <span>审核时间：</span>
	                <div class="add-all"><?php echo $refund->verify_time;?></div>
	            </li>
                <?php endif ?>
			</ul>
		</div>
	</div>
</div>
<?php $this->load->view('tourism/layout/footer') ?>